package supermarketMIS.dao;

import java.util.ArrayList;

import supermarketMIS.bean.Product;

public class ProductDAO {
	//数据--集合
	ArrayList productList=new ArrayList<>();
	public void add(String id,String name,double price) {
		Product product=new Product();
		product.setId(id);
		product.setName(name);
		product.setPrice(price);
		
		productList.add(product);			
		
	}
	public ArrayList  searchAll() {
		return productList;
	}
	

}
